<?php
//
//  SVNManager config.php file for Linux based servers
//

//You can find the available localizations in a linux shell by typing: locale -a
//
//Warning: Please set this correct if you want to support exotic repository names 
$lang						= "zh_CN.UTF-8";

//Shell command's
$htpassword_cmd 			= 	"/usr/bin/htpasswd";
$svn_cmd 					= 	"/usr/bin/svn";
$svnadmin_cmd 				= 	"/usr/bin/svnadmin --config-dir /home/svn/conf";

//Subversion locations
$svn_config_dir				=	"/data/svn/conf";
$svn_repos_loc 				= 	"/data/svn/repos";
$svn_passwd_file 			= 	"/data/svn/passwdfile";
$svn_access_file 			= 	"/data/svn/accessfile";

//If the following is set, removing a repository will cause it to be
//moved to this location rather than being deleted.
$svn_trash_loc				=	"/data/svn/trash";

// If $svnserve_user_file is defined, then SVNManager will create a
// user/password file suitable for use with SVNSERVE
//
// When not set, this feature isn't enabled.
//
// Warning: When enabled, this mode requires that passwords are stored in the database readable!
// 
// Note: When is feature is enabled later, passwords need to be re-set before they are included in
//  	 the svnserve user file.
//
//$svnserve_user_file		=	"/home/svn/repos/svnserve_passwd_file"; 
$svnserve_user_file			=	"/data/svn/conf/svnserve_passwd_file";

//SMTP Server for outgoing mail
$smtp_server 			= 	"";

//Data Source Name (only tested with mysql and sqlite!!)
//
//A database will be automatically created when SVNManager is first started, if you 
//make sure that the credentials have database creation rights!
//
//An empty SQLite database will automatically be generated with the first
//startup!
//
//Please note that if you change the directory for a SQLite database that you
//choose a location that is not accessible via web!!
//

//grant all privileges on *.* to svn@192.168.1.88 identified by 'kisssvn';
// grant all privileges on *.* to svn@'%' identified by 'kisssvn';
$dsn				= 	"mysql://svnmanager:kisssvnice@localhost/svnmanager";

//The following location for SQLite is not readable from internet by means of an .htaccess file
//$dsn		    	=	"sqlite://svnmanager/svnmanager.db";  

//Administrator account (only for first time use, when you create an admin user this account will be unusable)
$admin_name						=	"admin";
$admin_temp_password			=	"admin";

// If $post_create_script is defined, then this script / command will be
// executed after a repository is created. 
// When the script/command is executed the one and only parameter will be
// the physical location of the repository.
// This might copy a default set of hooks or config files
//
// $post_create_script = "newrepo-script";

?>
